package com.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server", fallback = Hystric.class)
public interface UserInter {
    @RequestMapping(value = "/user",method = RequestMethod.GET)
    String user(@RequestParam(value = "name") String name);
}
